package io.forlove.framework.mudrock.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "mudrock")
@Data
public class Configs {

    /**
     *  consumer
     *  provider
     *  both
     */
    private String mode;

    private ConsumerConfig consumerConfig =new ConsumerConfig();

    @Data
    public static  class ConsumerConfig{
        private String remote;
        private int port;
    }

}

